user_group_data = dict()

with open("./groups_data.txt","r",encoding='utf-8') as f:
    lines = f.readlines()
    for line in lines:
        data = line.strip("\n").split(",")

        if data[1] in user_group_data.keys():
            user_group_data[data[1]].append(data[0])
        else:
            user_group_data[data[1]] = [data[0]]
        

            
print(user_group_data)

company_name = []
for k in user_group_data:
    print(k)
    # company_name.append(k)